<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<!-- Begin header -->
<jsp:include page="header.jsp"></jsp:include>
<!-- End header -->
<body>
<f:view beforePhase="#{userManaged.initPage}">
	<h:form id="mainForm">
		<f:loadBundle var="msg" basename="message_jsf_ja" />
		<div id="mainDiv" style="padding-left: 100px;"><h:outputText
			value="会員情報編集" /> <h:outputText value=" " /> <!-- Bat dau hien thi vung bao loi -->
		<h:messages styleClass="errMsg" showDetail="true" showSummary="false" />
		<c:if test="${userManaged.lsErrorMessage != null}">
		<t:dataList styleClass="errMsg" id="tDataListForErrMsg" layout="unorderedList"
			value="#{userManaged.lsErrorMessage}" var="item">
			<t:outputText value="#{item}" styleClass="errMsg" />
			<f:verbatim>&nbsp;</f:verbatim>
		</t:dataList>
		</c:if>
		<h:outputText value=" " />
		<!-- Ket thuc hien thi vung bao loi -->
		<h:panelGrid
			id="mainPanelGrid" columns="2" styleClass="tbl_input" title="会員情報編集">
			<h:outputText styleClass="lbl_left" value="* アカウント名:" />
			<h:inputText value="#{userManaged.loginName}" required="true"
				label="アカウント名" maxlength="15">
				<f:validator validatorId="loginNameValidator" />
				<t:saveState value="#{userManaged.loginName}" />
			</h:inputText>

			<h:outputText styleClass="lbl_left" value="* グループ:" />
			<h:selectOneMenu value="#{userManaged.groupId}" required="true"
				label="グループ">
				<f:selectItems value="#{userManaged.lsItemGroup}" />
				<t:saveState value="#{userManaged.lsItemGroup}" />
			</h:selectOneMenu>

			<h:outputText styleClass="lbl_left" value="* 氏名:" />
			<h:inputText value="#{userManaged.fullName}" label="氏名"
				required="true">
				<f:validator validatorId="fullNameValidator" />
				<t:saveState value="#{userManaged.fullName}" />
			</h:inputText>

			<h:outputText styleClass="lbl_left" value="カタカナ氏名:" />
			<h:inputText value="#{userManaged.fullNameKana}" label="カタカナ氏名">
				<f:validator validatorId="katakanaValidator" />
				<t:saveState value="#{userManaged.fullNameKana}" />
			</h:inputText>

			<h:outputText styleClass="lbl_left" value="* 生年月日:" />
			<h:panelGrid columns="6">
				<h:selectOneMenu value="#{userManaged.birthdayYear}">
					<f:selectItems value="#{userManaged.lsItemBirthdayYear}" />
					<t:saveState value="#{userManaged.lsItemBirthdayYear}" />
				</h:selectOneMenu>年
          <h:selectOneMenu value="#{userManaged.birthdayMonth}">
					<f:selectItems value="#{userManaged.lsItemBirthdayMonth}" />
					<t:saveState value="#{userManaged.lsItemBirthdayMonth}" />
				</h:selectOneMenu>月
          <h:selectOneMenu value="#{userManaged.birthdayDay}">
					<f:selectItems value="#{userManaged.lsItemBirthdayDay}" />
					<t:saveState value="#{userManaged.lsItemBirthdayDay}" />
				</h:selectOneMenu>日
        </h:panelGrid>

			<h:outputText styleClass="lbl_left" value="* メールアドレス" />
			<h:inputText value="#{userManaged.email}" label="メールアドレス"
				required="true">
				<f:validator validatorId="emailValidator" />
				<t:saveState value="#{userManaged.email}" />
			</h:inputText>

			<h:outputText styleClass="lbl_left" value="* 電話番号:" />
			<h:inputText value="#{userManaged.tel}" label="電話番号" required="true">
				<f:validator validatorId="telValidator" />
				<t:saveState value="#{userManaged.tel}" />
			</h:inputText>

			<h:outputText styleClass="lbl_left" value="* パスワード:" />
			<h:inputSecret value="#{userManaged.password}" label="パスワード"
				required="true">
				<f:validator validatorId="passwordValidator" />
			</h:inputSecret>


			<h:outputText styleClass="lbl_left" value="パスワード（確認）:" />
			<h:inputSecret value="#{userManaged.passwordConfirm}" />
		</h:panelGrid> <h:commandLink id="link" action="#" onclick="return show_hide()"
			value="日本語能力" /> <h:outputText value=" " />
		<div id="full"><h:panelGrid columns="2" styleClass="tbl_input">
			<h:outputText styleClass="lbl_left" value="資格:" />
			<h:selectOneMenu value="#{userManaged.codeLevel}">
				<f:selectItems value="#{userManaged.lsItemJapan}" />
				<t:saveState value="#{userManaged.lsItemJapan}" />
			</h:selectOneMenu>

			<h:outputText styleClass="lbl_left" value="資格交付日:" />
			<h:panelGrid columns="6">
				<h:selectOneMenu value="#{userManaged.startYear}">
					<f:selectItems value="#{userManaged.lsItemStartYear}" />
					<t:saveState value="#{userManaged.lsItemStartYear}" />
				</h:selectOneMenu>年
          <h:selectOneMenu value="#{userManaged.startMonth}">
					<f:selectItems value="#{userManaged.lsItemStartMonth}" />
					<t:saveState value="#{userManaged.lsItemStartMonth}" />
				</h:selectOneMenu>月
          <h:selectOneMenu value="#{userManaged.startDay}">
					<f:selectItems value="#{userManaged.lsItemStartDay}" />
					<t:saveState value="#{userManaged.lsItemStartDay}" />
				</h:selectOneMenu>日
        </h:panelGrid>
			<h:outputText styleClass="lbl_left" value="失効日:" />
			<h:panelGrid columns="6">
				<h:selectOneMenu value="#{userManaged.endYear}">
					<f:selectItems value="#{userManaged.lsItemEndYear}" />
					<t:saveState value="#{userManaged.lsItemEndYear}" />
				</h:selectOneMenu>年
          <h:selectOneMenu value="#{userManaged.endMonth}">
					<f:selectItems value="#{userManaged.lsItemEndMonth}" />
					<t:saveState value="#{userManaged.lsItemEndMonth}" />
				</h:selectOneMenu>月
          <h:selectOneMenu value="#{userManaged.endDay}">
					<f:selectItems value="#{userManaged.lsItemEndDay}" />
					<t:saveState value="#{userManaged.lsItemEndDay}" />
				</h:selectOneMenu>日
        </h:panelGrid>
			<h:outputText styleClass="lbl_left" value="点数:" />
			<h:inputText value="#{userManaged.totalStr}" label="点数">
				<f:validator validatorId="halfSizeValidator" />
				<t:saveState value="#{userManaged.totalStr}" />
			</h:inputText>
			<h:outputLabel value="" />
		</h:panelGrid></div>

		<h:panelGrid columns="2">
			<h:commandButton styleClass="btn" type="submit"
				action="#{userManaged.doConfirm}" value="確認" />
			<h:commandButton styleClass="btn" action="#" value="戻る" />
		</h:panelGrid></div>
	</h:form>

</f:view>
</body>
<jsp:include page="footer.jsp"></jsp:include>
</html>